package com.hyt.it.ogt.pj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hyt.it.ogt.pj.model.entity.Piece;

import java.util.List;

/**
 * <p>
 * 评卷块表 服务类
 * </p>
 *
 * @author qiaozj
 * @since 2020-07-09
 */
public interface IPieceService extends IService<Piece> {

    List<Piece> selectBySubject(String subjectId);
    
    List<Piece> selectAllPiecesByProjectIdAndSubject(String projectId, String subjectId);

    Piece getTeacherPiece(String projectId, String subjectId, String userId);

    List<Piece> getMarkPiece(String projectId, String subjectId, String pieceId);

    void updateFinishStatus(String projectId, String subjectId, String pieceCode, Boolean status);

    Piece selectPaperPiece(String projectId, String subjectId, String id);

    List<Piece> selectByProjectIdSubjectId(String projectId, String subjectId);
}
